home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
cuj9303.zip
/
1103100C
< prev
next >
Wrap
Text File
|
1993-06-21
|
418b
|
28 lines
// tdate7.cpp:
#include <iostream.h>
#include "date7.h"
main()
{
Date d1, d2;
cout << "Enter a date: ";
cin >> d1;
cout << "Enter another date: ";
cin >> d2;
cout << "d1 - d2 = " << d1 - d2 << endl;
cout << "d2 - d1 = " << d2 - d1 << endl;
return 0;
}
/* OUTPUT
Enter a date: 10/1/1951
Enter another date: 5/1/1954
d1 - d2 = -7/0/-2
d2 - d1 = 7/0/2
*/